//
//  LPTCompositionEditTableViewCell.m
//  LPTClient
//
//  Created by mac on 2018/12/7.
//  Copyright © 2018年 zhaodd. All rights reserved.
//

#import "LPTCompositionEditTableViewCell.h"

@interface LPTCompositionEditTableViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *preNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *preWeightLabel;

@end

@implementation LPTCompositionEditTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)refreshWihEntity:(LPTMedicineModel *)entity
{
    self.preNameLabel.text = entity.name;
    self.preWeightLabel.text = [NSString stringWithFormat:@"%.1fg",(long)entity.count/10.0];
//    self.preNameLabel.text = dic[@"chinese_medicine"][@"name"];
//    self.preWeightLabel.text = [NSString stringWithFormat:@"%@g",dic[@"weight"]];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
